﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainModel
{
    public class ChristmasItem:HolidaySaleItem
    {
        public override void AddDiscount()
        {
            sub_total = sub_total * 0.7;
        }

        //10% off all products
        public override void DailyDeal()
        {
            if (product_id > 0 && product_id < 100)
                sub_total = sub_total * 0.8;
            else if (product_id >= 100 && product_id < 150)
                sub_total = sub_total * 0.9;
            else
                sub_total = sub_total * 0.7;
        }
    }
}
